package com.fast.server.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fast.server.entity.vo.SysFileShare;
import com.fast.server.mapper.SysFileInfoMapper;
import com.fast.server.mapper.SysFileShareMapper;
import com.fast.server.service.ISysFileShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 分享信息 服务实现类
 * </p>
 *
 * @author ziyuancheng
 * @since 2024-05-05
 */
@Service
public class SysFileShareServiceImpl extends ServiceImpl<SysFileShareMapper, SysFileShare> implements ISysFileShareService {

    @Autowired
    private SysFileInfoMapper fileInfoMapper;

    @Override
    public Long getUserUseSpace(String userId) {
        return fileInfoMapper.selectUseSpace(userId);
    }
}
